/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

/**
 *
 * @author Young Ran
 */
public class Account {
    public final int USER = 0;
    public final int STAFF = 1;
    public final int ADMIN = 2;
  
    private String username;
    private String password;
    private int level;

    public Account() {
    }

    public Account(String username, String password) {
        this.username = username;
        this.password = password;
        this.level = 0;
    }
    

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "Account{" + "USER=" + USER + ", STAFF=" + STAFF + ", ADMIN=" + ADMIN + ", username=" + username + ", password=" + password + ", level=" + level + '}';
    }
    
    
}
